package com.fauks.ssm.spring.tx_annotation;

import com.fauks.ssm.mybatis.bean.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TxService {

    @Autowired
    private Tx2Service tx2Service;

    public void update(Person person) {
        tx2Service.updateById(person);
        int i = 1 / 0;
    }
}
